
/**
 * @param {all} value 地区对象字符串
 * @return {String} 格式化后显示的文字
 */
export const formatPlace = (value) =>{
	try{
		const placeObj = JSON.parse(value)
		const lang = uni.getLocale() == 'zh-Hans' ? 'cn' : uni.getLocale()
		return `${placeObj.parentInfo[lang]},${placeObj.childInfo[lang]}`
	}catch(e){
		//TODO handle the exception
		return value
	}
}

export function jobNatureStr(value) {
				var str = ''
				if (value === '0') {
					str = this.$t('recruit.Fulltime')
				} else if (value === '1') {
					str = this.$t('recruit.Part-time')
				}
				console.log(str)
				return str
			}
			export function workingModeStr(value) {
				var str = ''
				if (value === '0') {
					str = this.$t('recruit.OnSite')
				} else if (value === '1') {
					str = this.$t('recruit.OnLine')
				}
				return str
			}
			export function workExperienceStr(value) {
				var str = ''
				if (value === '0') {
					str = this.$t('recruit.Lessthan1year')
				} else if (value === '1') {
					str = this.$t('recruit.1-3Years')
				} else if (value === '2') {
					str = this.$t('recruit.3-5Years')
				} else if (value === '3') {
					str = this.$t('recruit.moreThan5Years')
				}
				return str
			}